package com.xwd.pojo;

import org.omg.CORBA.INTERNAL;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName Emp
 * @Description: com.xwd.dao
 * @Auther: xiwd
 * @Date: 2022/2/7 - 02 - 07 - 18:57
 * @version: 1.0
 */
public class Emp
        implements Serializable {
    private static final long serialVersionUID = -4657007327124076894L;
    //properties
    private Integer empno;
    private String ename;
    private Integer mgr;
    private String job;
    private Date hiredate;
    private BigDecimal sal;
    private BigDecimal comm;
    private Integer deptno;
    private String grade;
    //setter
    public void setEmpno(Integer empno) {
        this.empno = empno;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setMgr(Integer mgr) {
        this.mgr = mgr;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public void setSal(BigDecimal sal) {
        this.sal = sal;
    }

    public void setComm(BigDecimal comm) {
        this.comm = comm;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    //getter
    public Integer getEmpno() {
        return empno;
    }

    public String getEname() {
        return ename;
    }

    public Integer getMgr() {
        return mgr;
    }

    public String getJob() {
        return job;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public BigDecimal getSal() {
        return sal;
    }

    public BigDecimal getComm() {
        return comm;
    }

    public Integer getDeptno() {
        return deptno;
    }

    public String getGrade() {
        return grade;
    }

    //constructors
    public Emp() {
        this(null,null,null,null,null,null,null,null,null);
    }

    public Emp(Integer empno, String ename, Integer mgr, String job, Date hiredate, BigDecimal sal, BigDecimal comm, Integer deptno, String grade) {
        super();
        this.empno = empno;
        this.ename = ename;
        this.mgr = mgr;
        this.job = job;
        this.hiredate = hiredate;
        this.sal = sal;
        this.comm = comm;
        this.deptno = deptno;
        this.grade = grade;
    }

    //methods
    @Override
    public String toString() {
        return "Emp{" +
                "empno=" + empno +
                ", ename='" + ename + '\'' +
                ", mgr=" + mgr +
                ", job='" + job + '\'' +
                ", hiredate=" + hiredate +
                ", sal=" + sal +
                ", comm=" + comm +
                ", deptno=" + deptno +
                ", grade=" + grade +
                '}';
    }
}
